package grape.workflow.rest.canstartprocess.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 可发起的流程
 * </p>
 *
 * @author yangwei
 * @since 2020-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="可发起的流程更新表单对象")
public class CanStartProcessUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="流程名称不能为空")
    @ApiModelProperty(value = "流程名称",required = true)
    private String name;

    @NotEmpty(message="流程定义key不能为空")
    @ApiModelProperty(value = "流程定义key",required = true)
    private String processDefinitionKey;

    @NotNull(message="流程定义版本不能为空")
    @ApiModelProperty(value = "流程定义版本",required = true)
    private Integer processDefinitionVersion;

    @NotNull(message="是否使用最新流程版本不能为空")
    @ApiModelProperty(value = "是否使用最新流程版本",required = true)
    private Boolean isUseLatestVersion;

    @ApiModelProperty(value = "描述")
    private String remark;



}
